package com.hystrix.feign;


import com.hystrix.entity.StudentEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Collection;

@FeignClient(value = "provider")//provider配置文件中模块的名
public interface FeignProviderClient {
    @GetMapping("/student/all")
     Collection<StudentEntity> all();
    @GetMapping("/student/index")
     String index();
}
